import type { ThemeType } from '../../types/interfaces'

export type SortOrderType = 'asc' | 'desc'

export interface SortOption {
  value: string
  label: string
}

export interface SortProps {
  id?: string
  order: SortOrderType
  type: string
  options: SortOption[]
  onChange: (type: string, order: SortOrderType) => void
  theme?: ThemeType
}

export const DEFAULT_SORT_PROPS: Partial<SortProps> = {
  order: 'asc',
  type: 'time',
  options: [],
}
